<p>The following was included in a &#37;asset:sample/include.tmp&#37; call</p>
<p>First things to note:</p>
<dl>
	<dt>&#37; are special characters</dt>
		<dd>You cannot use them outside of markup or else things will break.  Use &amp;#37; if you really need the &#37; symbol</dd>
	<dt>The system is made to be hacked</dt>
		<dd>It was built on the premise that there is no one right way.  It tries to work things smoothly and cleanly, but allows for you to futz as you like.</dd> 
</dl>
<p>Capabilities of the markup engine:</p>
<dl>
	<dt>Load an asset:</dt>
		<dd>This parses the asset through the markup engine. Note that path is relative to assets directory</dd>
		<dd>Example:<br />
			<div class="code">
				MARKUP:<br />
				&#37;asset:sample/include.tmp&#37;
			</div>
	<dt>Variable from code:</dt>
		<dd>Prints the value of the variable.  But you need to first register the value using <span class="code">registerString()</span>, <span class="code">registerFromBuffer()</span>, etc.</dd>
		<dd>Example:<br />
			<div class="code">
				PHP:<br />
				$custom_var = "Custom variable";<br />
				$autohtml->registerString("custom_var", $custom_var);<br />
				<br />
				MARKUP:<br />
				&#37;var:custom_var&#37;
			</div>
		</dd>
		<dd>Output:<br />
			<div class="code">
				%var:custom_var%
			</div>
		</dd>
	<dt>Looping code:</dt>
		<dd>Iterates over arrays.</dd>
		<dd>Example:<br />
			<div class="code">
				PHP:<br />
				$custom_arr = array(<br />
				&nbsp;&nbsp;array("tag"=&gt;"Author", "value"=&gt;"Shu Zong Chen"),<br />
				&nbsp;&nbsp;array("tag"=&gt;"Software", "value"=&gt;"autoHTML"),<br />
				&nbsp;&nbsp;array("tag"=&gt;"Site", "value"=&gt;"http://code.google.com/p/autohtml/"));<br />
				$autohtml->registerArray("custom_arr", $custom_arr);<br />
				<br />
				MARKUP:<br />
				&#37;foreach:custom_arr&#37;<br />
				&nbsp;&nbsp;&#37;var:custom_arr:__i&#37;: &#37;var:custom_arr:tag&#37; = &#37;var:custom_arr:value&#37;<br />
				&#37;endeach&#37;
			</div>
		</dd>
		<dd>Output:<br />
			<div class="code">
			%foreach:custom_arr%
				%var:custom_arr:__i%: %var:custom_arr:tag% = %var:custom_arr:value%<br />
			%endeach%
			</div>
		</dd>
<ul>
	<li><a href="http://code.google.com/p/autohtml/">autoHTML</a> site for more fun and information!</li>
</ul>